<!DOCTYPE html>
<html>
<head>

<!-- CSS -->
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/css/bootstrap.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/css/bootstrap-responsive.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/css/bootstrap.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/css/bootstrap-theme.min.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/assets/css/jquery-ui.css" type="text/css" media="screen" />
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl."/assets/js/jquery-ui.js");?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl."/assets/js/jquery.min.js");?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl."/assets/js/bootstrap.min.js");?>

<!-- Java Script -->
<?php
	//Yii::app()->clientScript->registerCoreScript('jquery.min');
	Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/assets/js/jquery-1.10.2.min.js');
	Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/assets/js/jquery-ui-1.10.3.custom.min.js');
	Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/assets/js/ckeditor/ckeditor.js');
?>
<script type="text/javascript">
	function getURL(url){
		return url.replace('//', '/');
	}
</script>
<?php  //if(isset(Yii::app()->session['user'])){?>

</head>
<?php 

function echoActiveClassIfRequestMatches($requestUri)
{

	$current_file_name = $_SERVER['REQUEST_URI'];
    if ($current_file_name == $requestUri)
        echo 'class="active"';
}
$current_file_name =   $_SERVER['REQUEST_URI'];
if ($current_file_name == $requestUri)
	echo 'class="active"';
?>
<body>
 		 <div class="nav" ng-controller="HeaderController">
		    <ul class="nav nav-pills">
		    <li <?php echoActiveClassIfRequestMatches("/prathai3g/index.php/admin/resource")?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/admin/resource">Resource Usage</a></li>
			    <li <?php echoActiveClassIfRequestMatches("/index.php")?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php">Admin User</a></li>
			    <li <?php echoActiveClassIfRequestMatches("/prathai3g/index.php/Hotspot/index")?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/Hotspot/index">Hotspot User</a></li>
			    <li <?php echoActiveClassIfRequestMatches("/index.php")?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php">Card Maker</a></li>
			    <li <?php echoActiveClassIfRequestMatches("/index.php")?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php">Log</a></li>
			    <li <?php echoActiveClassIfRequestMatches("/index.php")?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php">Login Theme</a></li>
			    <li <?php echoActiveClassIfRequestMatches("/prathai3g/index.php/setting")?>><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/setting">Setting</a></li>

				<!--li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/admin/index">User</a></li>
				<li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/admin/resource">Resource</a></li>
				<li><a href="#">User Hospot</a></li-->
		    </ul>
  		</div>


<?php 
//echo "ss".Yii::app()->session['user'];
//}?>

	<?php echo $content; ?>

	
</body></html>